<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<title>Database Performance Dashboard</title>

<link rel="stylesheet" href="style.css" type="text/css" media="screen" />

</head>

<body>

<div id="container">

	<!-- Start of Page Header -->

	<div id="page_header">

		<div id="company_name">
		<h1><span>Oracle Database Performance Dashboard</span></h1>
		</div>

	</div>

	<!-- End of Page Header -->
<?php require_once("bootstrap.php");?>

	<!-- Start of Page Menu -->

	<div id="page_menu">

		<ul>
		<li class="home"><a href="./index.php" title="Home"><span>Home</span></a></li>
		<li class="monitor"><a href="./firstlevel.php" title="First Level of Parameters Monitor"><span>Monitor</span></a></li>
		<li class="debug"><a href="./debug.php" title="Debug Interface"><span>Debug</span></a></li>
		<li class="settings"><a href="./settings.php" title="Settings"><span>Settings</span></a></li>
		<li class="aboutus"><a href="./aboutUs.php" title="About Us"><span>About Us</span></a></li>
		</ul>

	</div>
<?php
	if(isset($_SESSION['user'])){ 
?>
	<div id="logout"><a href="./logout.php">logout</a></div>
<?php
	}
?>
	<!-- End of Page Menu -->

	<!-- Start of Main Content -->
<?php
	
	if(isset($_GET['error']) && $_GET['error'] != '') {
		if($_GET['error'] == 0)
			echo '<font color="red">You need to log in first.</font>';
		else if($_GET['error'] == 1)
			echo '<font color="red">Wrong user name or password.</font>';
	}
?>

	<div id="main_content">

		<div class="content_header">
		<h2><span>Database Performance Dashboard</span></h2>
		</div>

		<div class="content_box_right">
		<div class="content_box_left">
		<div class="content_box">
		<div id="main_content_border">

			<!-- Start of Top Masters Listing 1 -->

			<div class="topmasters">

				<div class="thumbnail">
				<img src="images/_thumbnail02.gif" width="133" height="93" alt="Thumbnail Caption" />
				</div>


				<div class="topmasters_info">

<h2>
Introduction
</h2>

<p>This is a Oracle database performance monitor. You could log in with your oracle account and customize the threshold values for each parameter that you want to monitor</p>
				</div>

				<div class="clearthis">&nbsp;</div>

			</div>

			<!-- End of Top Masters Listing 1 -->





			<!-- Start of Login Box -->
			<?php
				if(!isset($_SESSION['user'])) {
			?>
			<div id="loginbox_left">
			<div id="loginbox_right">
			<div id="loginbox">
			
				<h2>Log In to Oracle Account</h2>

				<form method="post" action="auth.php">
				
				<div class="loginbox_formfield">
				<strong>Host:</strong>
				<input name="host" type="text" value="localhost"/>
					<div class="clearthis">&nbsp;</div>
				</div>
				<div class="loginbox_formfield">
				<strong>Database:</strong>
				<input name="dbname" type="text" value="cs5226"/>
					<div class="clearthis">&nbsp;</div>
				</div>
				<div class="loginbox_formfield">
				<strong>Username:</strong>
				<input name="name" type="text" />
					<div class="clearthis">&nbsp;</div>
				</div>

				<div class="loginbox_formfield">
				<strong>Password:</strong>
				<input name="pass" type="password" />
					<div class="clearthis">&nbsp;</div>
				</div>

				<div class="loginbox_formfield">
				<input type="submit" value="Log in" class="button" />
				</div>

				</form>
			

			</div>
			</div>
			</div>
			<?php
				}
			?>

			<!-- End of Login Box -->


			<!-- Start of Tips of the Day -->

			<!-- End of Tips of the Day -->


			<div class="clearthis">&nbsp;</div>

		</div>
		</div>
		</div>
		</div>

	</div>

	<!-- End of Main Content -->


	<div class="clearthis">&nbsp;</div>


	<!-- Start of Page Footer -->

	<div id="page_footer">
	Design by <a href="aboutUs.php">CS5226 Group</a>
	</div>

</div>

</body>
</html>